import helper from "./helper";
const moduleType = {
  get journalNumberPrefix() {
    return {
      value: "JournalNumberPrefix",
      text: "凭证字",
    };
  },
  get printTemplate() {
    return {
      value: "PrintTemplate",
      text: "打印模板",
    };
  },
  get organization() {
    return {
      value: "Organization",
      text: "组织",
    };
  },
  get currency() {
    return {
      value: "Currency",
      text: "货币",
    };
  },
  get customer() {
    return {
      value: "Customer",
      text: "客户",
    };
  },
  get supplier() {
    return {
      value: "Supplier",
      text: "供应商",
    };
  },
  get thirdparty() {
    return {
      value: "Thirdparty",
      text: "第三方",
    };
  },
  get journal() {
    return {
      value: "Journal",
      text: "凭证",
    };
  },
  get account() {
    return {
      value: "Account",
      text: "科目",
    };
  },
  get initialBalance() {
    return {
      value: "InitialBalance",
      text: "科目期初余额",
    };
  },
  get array() {
    return helper.objectToArray(moduleType);
  },
  get(value) {
    return helper.getEnumItemByValue(moduleType, value);
  },
};
export default moduleType;
